﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScrumLite.Data
{
    public class ExcludedUserStore : IExcludedUserStore
    {
        public string[] GetExcludedUsers()
        {
            using (ScrumLiteDataContext context = new ScrumLiteDataContext())
            {
                var excluded = from u in context.ExcludedUsers
                               select u.samAccountName;

                return excluded.ToArray();
            }
        }
    }
}
